package com.lyf.beans.component;

import org.springframework.beans.factory.FactoryBean;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/13
 * @VERSION 1.0
 * @DESC
 */
public class HelloSpringFactoryBean implements FactoryBean<HelloSpring> {
    @Override
    public HelloSpring getObject() throws Exception {
        return new HelloSpring("hello,");
    }

    @Override
    public Class<?> getObjectType() {
        return HelloSpring.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
